package cn.zxcoder.entity.login;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;

/**
 * <p>
 * 记住用户的账户和密码
 * </p>
 *
 * @author zx
 * @since 2023-05-06
 */
@ApiModel(value = "Account对象", description = "记住用户的账户和密码")
@Data
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("密码")
    private String password;



    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("电子邮箱")
    private String mail;

    @TableField(value = "role_id")
    @ApiModelProperty("角色id")
    private String roleId;

    @TableField(exist = false)
    @ApiModelProperty("部门名字")
    private String deptName;

    @ApiModelProperty("修改时间")
    private Date editTime;

    @TableField(value = "dept_id")
    @ApiModelProperty("对应的部门id")
    private Integer dept;


    @TableField(exist = false)
    @ApiModelProperty("对应的角色名字")
    private String roleName;

    public Integer getId() {

        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getDept() {
        return dept;
    }

    public void setDept(Integer dept) {
        this.dept = dept;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public Account(String username, String password) {
        this.username = username;
        this.password = password;
    }


    public Account() {
    }

    @Override
    public String toString() {
        return "Account{" +
            "id=" + id +
            ", username=" + username +
            ", password=" + password +
            ", dept=" + dept +
            ", name=" + name +
            ", phone=" + phone +
            ", sex=" + sex +
            ", status=" + status +
            ", mail=" + mail +
        "}";
    }
}
